package com.larly.common;

import lombok.Data;

/**
 * 响应结果
 *
 * @author larly
 */
@Data
public class BaseResponse<T> {
    /**
     * 响应码
     */
    private int code;

    /**
     * 响应信息
     */
    private String message;

    /**
     * 响应数据
     */
    private T data;

    public BaseResponse(int code, String message, T data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }
}
